package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WithdrawDepositMapper;
import com.ruoyi.system.domain.WithdrawDeposit;
import com.ruoyi.system.service.IWithdrawDepositService;

/**
 * 提现Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-03-08
 */
@Service
public class WithdrawDepositServiceImpl implements IWithdrawDepositService 
{
    @Autowired
    private WithdrawDepositMapper withdrawDepositMapper;

    /**
     * 查询提现
     * 
     * @param depositId 提现ID
     * @return 提现
     */
    @Override
    public WithdrawDeposit selectWithdrawDepositById(Integer depositId)
    {
        return withdrawDepositMapper.selectWithdrawDepositById(depositId);
    }

    /**
     * 查询提现列表
     * 
     * @param withdrawDeposit 提现
     * @return 提现
     */
    @Override
    public List<WithdrawDeposit> selectWithdrawDepositList(WithdrawDeposit withdrawDeposit)
    {
        return withdrawDepositMapper.selectWithdrawDepositList(withdrawDeposit);
    }

    /**
     * 新增提现
     * 
     * @param withdrawDeposit 提现
     * @return 结果
     */
    @Override
    public int insertWithdrawDeposit(WithdrawDeposit withdrawDeposit)
    {
        return withdrawDepositMapper.insertWithdrawDeposit(withdrawDeposit);
    }

    /**
     * 修改提现
     * 
     * @param withdrawDeposit 提现
     * @return 结果
     */
    @Override
    public int updateWithdrawDeposit(WithdrawDeposit withdrawDeposit)
    {
        return withdrawDepositMapper.updateWithdrawDeposit(withdrawDeposit);
    }

    /**
     * 批量删除提现
     * 
     * @param depositIds 需要删除的提现ID
     * @return 结果
     */
    @Override
    public int deleteWithdrawDepositByIds(Integer[] depositIds)
    {
        return withdrawDepositMapper.deleteWithdrawDepositByIds(depositIds);
    }

    /**
     * 删除提现信息
     * 
     * @param depositId 提现ID
     * @return 结果
     */
    @Override
    public int deleteWithdrawDepositById(Integer depositId)
    {
        return withdrawDepositMapper.deleteWithdrawDepositById(depositId);
    }
}
